import { Constructor } from "../../3rd/ECS/__private";

export class ClassFactory<T extends object>
{
    comT: any;

    constructor(comT:Constructor<T>)
    {
        this.comT =  comT;
    }

    NewCls():T
    {
        return new this.comT();
    }
}